package com.jgzx.domain;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author libo
 * @date 2021/7/6 19:49
 */
@Data
@ApiModel(value = "功能数据权限VO")
public class DataPermVO {

    @ApiModelProperty(value = "功能数据权限ID", required = true)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long data_perm_id;

    @ApiModelProperty(value = "功能标识", required = true)
    private String function_flag;

    @ApiModelProperty(value = "功能名称", required = true)
    private String function_name;

    @ApiModelProperty(value = "数据权限名称", required = true)
    private String data_perm_name;

    @ApiModelProperty(value = "条件字段")
    private String condition_column;

    @ApiModelProperty(value = "条件符号", required = true)
    private String condition_symbol;

    @ApiModelProperty(value = "条件值", required = true)
    private String condition_value;

    @ApiModelProperty(value = "是否生效:1-生效 0-无效", required = true)
    @JsonSerialize(using = ToStringSerializer.class)
    private Integer data_perm_status;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建时间", required = true)
    private Date create_time;

    @ApiModelProperty(value = "创建人", required = true)
    private String create_user_name;

    @ApiModelProperty(value = "更新时间", required = true)
    private Date update_time;

    @ApiModelProperty(value = "更新人", required = true)
    private String update_user_name;
}
